import instance from '@/axios';

import qs from 'qs';

// 发送手机验证码请求
// export const SendCodeAPI = params => instance.post('/mock/1h9xcTeAZzV/sendSMS', qs.stringify(params));
export const SendCodeAPI = params => instance.post('/sendSMS', qs.stringify(params));


// 手机验证码登录请求
export const PhoneLoginAPI = params => instance.post('/phoneRegin', qs.stringify(params));

// 精品推荐请求
export const JingPinAPI = () => instance.get('/products/recommend');

//热门兑换请求
export const ReMenAPI = () => instance.get('/products/hot');

//商品详情页
export const ProductDetailAPI = id  => instance.get(`/products/${id}`);